package cn.xfdzx.android.apps.shop.fragment.type.contract;

import cn.xfdzx.android.apps.shop.base.BaseModel;
import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.base.NetCallBack;
import cn.xfdzx.android.apps.shop.base.NetCallBackImpl;
import cn.xfdzx.android.apps.shop.bean.CategoryAllBeen;
import cn.xfdzx.android.apps.shop.bean.ConfirmGoodBeen;
import cn.xfdzx.android.apps.shop.bean.HomeSearchXFDGoodBeen;
import cn.xfdzx.android.apps.shop.fragment.home.response.HomeNearShop;
import cn.xfdzx.android.apps.shop.fragment.type.request.AddCart;
import cn.xfdzx.android.apps.shop.fragment.type.request.CateAll;

public interface MarketClassificationContract {
    interface Model extends BaseModel {
        void getClassoficationData(String status, NetCallBackImpl<CategoryAllBeen> categoryAllBeen);
        void getListAll(CateAll cateAll, NetCallBackImpl<HomeSearchXFDGoodBeen> callBack);
        void  addCart(AddCart addCart, NetCallBack<ConfirmGoodBeen>callBack);

    }

    interface View extends BaseView {
        void getSuccessData(CategoryAllBeen categoryAllBeen);

        void getListGoodsSuccess(HomeSearchXFDGoodBeen goodBeen);

        void  getOnFail(String fail);

        void  addCarSuccess(ConfirmGoodBeen goodBeen,int postion);
    }

    interface Presenter {
        void getClassoficationData(String status);

        void getListAll(CateAll cateAll);

        void  addCart(AddCart addCart,int postion);

    }
}
